#{extends 'main.html' /}
#{set title:'Home' /}


    
    #{if curriculums}
        <div class="curriculums">    
            <h3>Curriculums <span class="from">from this Year</span></h3>
        
            #{list items:curriculums, as:'curriculum'}
                <div class="curriculum">
                    <h2 class="curriculum-name">
                        <a href="#">${curriculum.name}</a>
                    </h2>
                    <div class="curriculum-metadata">
                        <span class="curriculum-description">
                            Description: ${curriculum.description}
                        </span>
                        <div class="curriculum-subjects">
                            ${curriculum.subjects.size() ?: 'no'} 
                            subject${curriculum.subjects.size().pluralize()}
                            #{if curriculum.subjects}
                                - lastest subject added: ${curriculum.subjects[-1].name}
                            #{/if}
                        </div>
                    </div>
                </div>
            #{/list}
        </div>
    #{/if}
    
#{else}
    <div class="empty">
        There is currently nothing to read here.
    </div>
#{/else}